//
//  CinemaCell.m
//  Project1
//
//  Created by 黄珂耀 on 15/7/21.
//  Copyright (c) 2015年 黄珂耀. All rights reserved.
//

#import "CinemaCell.h"

@implementation CinemaCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setModal:(CinemaModal *)modal
{
    _modal = modal;
    [self setNeedsLayout];
}

- (void)layoutSubviews
{
    [super layoutSubviews];

    self.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg_main"]];
    self.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
    
    [_cinemaName setText:_modal.name];
    [_cinemaAddress setText:_modal.address];
    [_cinemaGrade setText:_modal.grade];
    [_cinemaLowPrice setText:_modal.lowPrice];
    [_cinemaDistance setText:_modal.distance];
    
}



- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
